package com.smilive.delay.queue.redis;

import java.io.Serializable;


public class RedisDelayTask implements Serializable {

    /**
     * 任务 ID
     */
    private  long taskId;

    /**
     * 创建时间戳
     */
    private  long timestamp;

    public RedisDelayTask() {

    }

    public RedisDelayTask(long taskId) {
        this.taskId = taskId;
        this.timestamp = System.currentTimeMillis();
    }

    public long getTaskId() {
        return taskId;
    }

    public long getTimestamp() {
        return timestamp;
    }

}
